/*
package NiuKe;

import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

*/
/**
 * @Description:
 * @Author: Hanzao
 * @Date: 2022/06/12/21:54
 *//*

public class HJ14 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int num = scanner.nextInt();
        List<String> list = new ArrayList();
        for(int i=0;i<num;i++){
            list.add(scanner.next());
        }
        list.stream().sorted().forEach(System.out::println);
    }
}
*/
